home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / umddvi / dev / makefile.local < prev    next >
Makefile  |  1990-10-01  |  4KB  |  144 lines

  1. #
  2. # Copyright (c) 1987 University of Maryland Department of Computer Science.
  3. # All rights reserved.  Permission to copy for any purpose is hereby granted
  4. # so long as this copyright notice remains intact.
  5. #
  6. # $Header: Makefile,v 1.3 87/06/16 17:13:19 chris Exp $
  7. #
  8. # Makefile for device conversion programs
  9. #
  10. # You must run "make conf" to set up Makefile.local if you do not want
  11. # the default `all' configuration (see the file "conf.sh").  Remember to
  12. # use `make update'!
  13. DESTDIR=
  14. CFLAGS=    -O -R -I../h
  15. MAKE=    make
  16.  
  17. # these are intended to be overridden by the definitions in ../Makefile
  18. # but just in case, they are here too
  19. BINDIR=    ${DESTDIR}/usr/local/bin
  20. MANDIR=    ${DESTDIR}/usr/local/man
  21.  
  22. # Make options
  23. OPTS=    BINDIR=${BINDIR} MANDIR=${MANDIR} DESTDIR=${DESTDIR} CC="${CC}" \
  24.     CFLAGS="${CFLAGS}" ${MFLAGS}
  25.  
  26. SRCS=    imagen1.c verser1.c verser2.c
  27.  
  28. # First, the main entry used in the original Makefile.
  29. # It is also enabled by a `conf none'; this is just so that the
  30. # configurer will disable it in Makefile.local.
  31. # Whenever you run `make' afterward, this entry will run
  32. # make on your local Makefile.
  33.  
  34. # conf none
  35. # first:
  36. #     @if [ -f Makefile.local ]; then :; else \
  37. #         echo "You should run \`make conf' first!"; \
  38. #         echo \
  39. # "I will give you the default \`all' configuration for now."; \
  40. #         sh conf.sh all; \
  41. #     fi
  42. #     @${MAKE} -f Makefile.local ${OPTS}
  43. # endconf none
  44.  
  45. # In Makefile.local, this is the default (if you just say `make').
  46. # The `make' invocation will be commented out there.
  47. all:
  48. # conf none
  49. #     @${MAKE} -f Makefile.local ${OPTS} $@
  50. # endconf none
  51.  
  52. # Likewise, but for `make install'.
  53. install:
  54. # conf none
  55. #     @${MAKE} -f Makefile.local ${OPTS} $@
  56. # endconf none
  57.  
  58. # conf imagen
  59. all: imagen1
  60. install: inst-iptex inst-imagen1
  61. # endconf imagen
  62.  
  63. # conf versatec
  64. all: verser1 verser2
  65. install: inst-dvipr inst-verser1 inst-verser2
  66. # endconf versatec
  67.  
  68. # The rest of these are copied to Makefile.local, though many are
  69. # unused.
  70. conf:
  71.     @sh conf.sh
  72.     @echo "Remember to use \`make update' if you change the Makefile!"
  73.  
  74. clean:
  75.     rm -f core *.o verser1 verser2 imagen1
  76.  
  77. depend: ${SRCS}
  78.     cc -M ${CFLAGS} ${SRCS} |\
  79.         awk '{ if ($$1 != prev) { if (rec != "") print rec;\
  80.         rec = $$0; prev = $$1; }\
  81.         else { if (length(rec $$2) > 78) { print rec; rec = $$0; }\
  82.         else rec = rec " " $$2 } }\
  83.         END { print rec }' >makedep
  84.     echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
  85.     echo '$$r makedep' >>eddep
  86.     echo 'w' >>eddep
  87.     cp Makefile Makefile.bak
  88.     ed - Makefile <eddep
  89.     rm eddep makedep
  90.     echo '# DEPENDENCIES MUST END AT END OF FILE' >>Makefile
  91.     echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >>Makefile
  92.     echo '# see make depend above' >>Makefile
  93.     sh conf.sh update
  94.  
  95. update:
  96.     @sh conf.sh update
  97.  
  98. inst-dvipr:
  99.     install -c dvipr.sh ${BINDIR}/dvipr
  100.     install -c -m 444 ../man/dvipr.1 ${MANDIR}/man1/dvipr.1
  101. inst-verser1: verser1
  102.     install -s verser1 ${BINDIR}/verser1
  103. inst-verser2: verser2
  104.     install -s verser2 ${BINDIR}/verser2
  105.  
  106. inst-iptex:
  107.     install -c iptex.sh ${BINDIR}/iptex
  108.     install -c -m 444 ../man/iptex.1 ${MANDIR}/man1/iptex.1
  109. inst-imagen1: imagen1
  110.     install -s imagen1 ${BINDIR}/imagen1
  111.  
  112. lint: ${SRCS}
  113.     lint -hbxuL ../lib/llib-lib imagen1.c
  114.     lint -hbxuL ../lib/llib-lib verser1.c
  115.     lint -hbxuL ../lib/llib-lib verser2.c
  116.  
  117. dist:
  118.     rm -f Makefile.bak Makefile.local Makefile.l.bak
  119.     sh conf.sh all
  120.  
  121. imagen1: imagen1.o
  122. verser1: verser1.o
  123. verser2: verser2.o
  124.  
  125. imagen1 verser1 verser2: ../lib/lib.a
  126.     ${CC} ${CFLAGS} -o $@ $@.o ../lib/lib.a
  127.  
  128. # DO NOT DELETE THIS LINE -- make depend uses it
  129.  
  130. imagen1.o: imagen1.c /usr/include/stdio.h ../h/types.h ../h/conv.h ../h/dvi.h
  131. imagen1.o: ../h/dviclass.h ../h/dvicodes.h ../h/fio.h ../h/font.h
  132. imagen1.o: ../h/postamble.h ../h/search.h ../h/imagen.h ../h/imPcodes.h
  133. verser1.o: verser1.c /usr/include/stdio.h ../h/types.h ../h/conv.h ../h/dvi.h
  134. verser1.o: ../h/dviclass.h ../h/dvicodes.h ../h/fio.h ../h/font.h
  135. verser1.o: ../h/postamble.h ../h/search.h ../h/verser.h
  136. verser2.o: verser2.c /usr/include/errno.h /usr/include/setjmp.h
  137. verser2.o: /usr/include/stdio.h /usr/include/sys/vcmd.h
  138. verser2.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
  139. verser2.o: /usr/include/sys/ttydev.h ../h/types.h ../h/conv.h ../h/fio.h
  140. verser2.o: ../h/font.h ../h/verser.h
  141. # DEPENDENCIES MUST END AT END OF FILE
  142. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  143. # see make depend above
  144.